package com.zmn.plat.business.interfaces.news;

import java.util.List;

import com.zmn.common.dto.StatusDTO;
import com.zmn.plat.model.entity.news.News;
import com.zmn.plat.model.entity.news.NewsContent;
import com.zmn.plat.model.entity.news.NewsImage;

/**
 * Creator: nowind
 * 
 * @since 2018/7/12 18:16
 */
public interface NewsBService {

    /*========== news ==========*/

    Integer updateByKey(News news);

    Integer updateStatus(Integer newsId, Integer status, String updater);

    Integer updateStatus(News news);

    Integer updateStatusBatch(List<Integer> newsIds, Integer status, String updater);

    Integer updateStatusBatch(StatusDTO dto);

    public Integer updateSort(Integer newsId, Integer sort);

    Integer updateSort(News news);

    Integer insert(News news);

    Integer deleteByKey(Integer newsId);

    /*========== news_content ==========*/

    Integer updateContentByKey(NewsContent newsContent);

    Integer insertContent(NewsContent newsContent);

    /*========== news_image ==========*/

    Integer insertImage(NewsImage newsImage);

}
